package com.heima.shopweb.service;

import com.zijie.category.model.Category;
import com.zijie.core.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(value = "shop-gateway",contextId = "category-feign")
public interface CategoryFeignService {
    @GetMapping("/category-api/api/v1/category/tree")
    public ResponseEntity<JsonResult<List<Category>>> tree();
}
